<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>泽优全平台截屏-ueditor1.4x</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <script type="text/javascript" src="ueditor.config.js" charset="utf-8"></script>
	<script type="text/javascript" src="ueditor.all.js" charset="utf-8"></script>
    <link type="text/css" rel="stylesheet" href="zyCapture/skygqbox.css" />
    <script type="text/javascript" src="zyCapture/jquery-1.4.min.js"></script>
    <script type="text/javascript" src="zyCapture/json2.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="zyCapture/skygqbox.js"></script>
    <script type="text/javascript" src="zyCapture/scp.js" charset="utf-8"></script>
</head>
<body>
    <p>泽优全平台截屏解决方案(zyCapture)</p>
    <textarea name="后台取值的key" id="myEditor">泽优全平台截屏解决方案（zyCapture） for jsp ueditor 1.4x</textarea><br/>
    <script type="text/plain" id="myEditor1" name="myEditor1"></script>
    
    <div id="scpPanel"></div>    
	<script type="text/javascript" language="javascript">
		//根路径：http://localhost/api/scp/
        var pos = window.location.href.lastIndexOf("/");
        var api = [
            window.location.href.substr(0, pos + 1),
            "upload.jsp"
        ].join("");
		
		zyCapture.getInstance({
	        config: {
                PostUrl: api,
                Fields: { uname: "test" }
            },
	        event:{
	            hotKey:function(){
	                setTimeout(function () {
	                    zyCapture.getInstance().Capture2();
	                }, 100);
	            }
	        }	        
	    });		
		UE.getEditor('myEditor');
        UE.getEditor('myEditor1');
	</script>
</body>
</html>